<!-- 展示景区明细的组件 -->
<template>
  <div class="item_scenic">
    <span class="rank">{{ itemData.ranking }}</span>
    <span class="name">{{ itemData.name }}</span>
    <div class="pb">
      <div class="pb_content">
        <el-progress
          :color="itemData.color"
          :text-inside="true"
          :stroke-width="18"
          :percentage="itemData.present"
        />
      </div>
    </div>
  </div>
</template>

<script setup>
defineProps(["itemData"]);
</script>

<style lang="scss" scoped>
.item_scenic {
  width: 100%;
  height: 40px;
  margin: 10px 0;
  color: white;
  display: flex;
  align-items: center;

  .rank {
    flex: 1;
    text-align: center;
  }
  .name {
    flex: 1;
    text-align: center;
  }
  .pb {
    flex: 3;
    text-align: center;
    width: 100%;
    .pb_content {
      width: 90%;
    }
  }
}
</style>
